import {Component} from '@angular/core';
import {IonicPage, NavController, NavParams} from 'ionic-angular';

@IonicPage()
@Component({
    selector: 'page-about-detail',
    templateUrl: 'about-detail.html',
})
export class AboutDetailPage {
    public id:number;
    public u_id:number;

    constructor(public navCtrl: NavController, public navParams: NavParams) {

    }

    ionViewDidLoad() {
        console.log('ionViewDidLoad AboutDetailPage');
        console.log(JSON.stringify(this.navParams));
    }
    ionViewDidEnter(){
        console.log('ionViewWillEnter AboutDetailPage');
        this.id=this.navParams.get('id');
        console.log(JSON.stringify(this.navParams));
    //    这里请求后台刷新关联
        this.u_id=this.navParams.get('u_id');

    }

    goHome():void{
        this.navCtrl.push('HomePage',{'from':'AboutDetailPage','from_id':this.id})
    }
}
